#include<iostream>
#include<string>
#include<iomanip>
using namespace std;
int validId[10000];
int idIsChecked[10000];
int id2rank[10000];
bool isPrime(int id){
    if(id==2||id==3)
        return true;
    int i=2;
    for(;i*i<=id;i++){
        if(id%i==0)
            return false;
    }
    return true;
}
int main(){
    int N;
    cin>>N;
    int i=0;
    int id;
    while(i<N){
        i++;
        cin>>id;
        validId[id]=1;
        id2rank[id]=i;
    }
    int K;
    cin>>K;
    i=0;
    while(i<K){
        i++;
        cin>>id;
        cout<<setw(4)<<setfill('0')<<id;
        if(validId[id]!=1){
            cout<<": Are you kidding?"<<endl;
        }else if(idIsChecked[id]==1){
            cout<<": Checked"<<endl;
        }else{
            if(id2rank[id]==1){
                cout<<": Mystery Award"<<endl;
            }else if(isPrime(id2rank[id])){
                cout<<": Minion"<<endl;
            }else{
                cout<<": Chocolate"<<endl;
            }
            idIsChecked[id]=1;
        }
    }
    return 0;
}
